﻿#region 命名空间

using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using WinnerCMS.Common;
using WinnerCMS.Data;
using WinnerCMS.Model;

#endregion

namespace WinnerCMS.BLL.PageFactory
{
    [ToolboxData("<{0}:PageList runat=\"server\"></{0}:PageList>")]
    //[PartialCaching(10, "ParentId,Level")]
    public class PageList : DataBox
    {
        #region 父栏目id

        private int? _parentId;

        public int? ParentId
        {
            set { this._parentId = value; }
            get
            {
                if (this._parentId == null)
                {
                    this._parentId = Convert.ToInt32(Page.RouteData.Values["CategoryId"]);
                }
                return this._parentId;
            }
        }

        #endregion
    }
}